
import Relay from "react-relay";
export default class PurchMaterielBillMutation extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { purchMaterielBill }`;
    }

    getVariables() { 
        return {
            argsInput: {
                bomIds: this.props.bomIds,
                orderId: this.props.orderId,
            }
        }
    }

   getFatQuery() {
    return Relay.QL`fragment on purchMaterielBillPayload {
            purchMaterielBill {
                errorCode
                value
                totalResult
                id
                
            }
        }`;
}

getConfigs() {
    return [{
        type: 'REQUIRED_CHILDREN',
        children: [Relay.QL`
               fragment on purchMaterielBillPayload  {
                    purchMaterielBill {
                        errorCode
                        value
                        totalResult
                        id
                        
                    }
                 }
            `]
    }];
}

}
